unit CadastroConfigRecibo;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UFomCadastro, StdCtrls, Mask, DBCtrls, DB, DBTables, Buttons,
  ExtCtrls;

type
  TFConfigBoleto = class(TFormCadastro)
    DSrecibo: TDataSource;
    GroupBox1: TGroupBox;
    Label1: TLabel;
    DBEdit1: TDBEdit;
    Label2: TLabel;
    Label3: TLabel;
    DBEdit2: TDBEdit;
    Label4: TLabel;
    DBEdit3: TDBEdit;
    DBEdit4: TDBEdit;
    Label5: TLabel;
    DBEdit5: TDBEdit;
    DBEdit6: TDBEdit;
    Label6: TLabel;
    Label7: TLabel;
    DBEdit7: TDBEdit;
    DBEdit8: TDBEdit;
    DBEdit9: TDBEdit;
    DBEdit10: TDBEdit;
    Label8: TLabel;
    DBEdit11: TDBEdit;
    DBEdit12: TDBEdit;
    Label9: TLabel;
    DBEdit13: TDBEdit;
    DBEdit14: TDBEdit;
    Label10: TLabel;
    DBEdit15: TDBEdit;
    DBEdit16: TDBEdit;
    Label11: TLabel;
    DBEdit17: TDBEdit;
    DBEdit18: TDBEdit;
    Label12: TLabel;
    Label13: TLabel;
    Label14: TLabel;
    DBEdit19: TDBEdit;
    DBEdit20: TDBEdit;
    Label15: TLabel;
    DBEdit21: TDBEdit;
    DBEdit22: TDBEdit;
    Label16: TLabel;
    DBEdit23: TDBEdit;
    qrecibo: TTable;
    vAR3: TLabel;
    DBEdit24: TDBEdit;
    DBEdit25: TDBEdit;
    DBEdit26: TDBEdit;
    DBEdit27: TDBEdit;
    Label17: TLabel;
    procedure BtnIncluirClick(Sender: TObject);
    procedure BtnSalvarClick(Sender: TObject);
    procedure BtnCancelarClick(Sender: TObject);
    procedure BtnFecharClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure BtnEditarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FConfigBoleto: TFConfigBoleto;

implementation

{$R *.dfm}

procedure TFConfigBoleto.BtnIncluirClick(Sender: TObject);
begin
//  inherited;
Qrecibo.Edit;
end;

procedure TFConfigBoleto.BtnSalvarClick(Sender: TObject);
begin
  inherited;
qrecibo.fieldbyname('par_codigo').asstring := '1';
qrecibo.Post;
end;

procedure TFConfigBoleto.BtnCancelarClick(Sender: TObject);
begin
  inherited;
qrecibo.Cancel;
end;

procedure TFConfigBoleto.BtnFecharClick(Sender: TObject);
begin
  inherited;
close;
end;

procedure TFConfigBoleto.FormCreate(Sender: TObject);
begin
  inherited;
  qrecibo.close;
  qrecibo.Open;
end;

procedure TFConfigBoleto.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  inherited;
qrecibo.close;
end;

procedure TFConfigBoleto.BtnEditarClick(Sender: TObject);
begin
inherited;
qrecibo.first;
qrecibo.edit;
btnsalvar.enabled:=true;
end;

end.
